package com.cskaoyan.mapper;

import com.cskaoyan.bean.bo.BrandBO;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.vo.BrandVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/5 16:12
 */
public interface BrandMapper {
    List<BrandVO> selectBrandByPage(@Param("baseParam") BaseParam baseParam, @Param("id") Integer id, @Param("name") String name);

    int addBrand(BrandBO brandBO);

    BrandVO selectBrandById(Integer id);

    void updateBrand(BrandBO brandBO);

    int deleteBrand(Integer id);

    int selectBrandCount();
}
